
import { request } from "@/http/axios"
import * as BS from "../types/index"

// 检索模型
export function getMilstdList(params: BS.PageTableRequestData) {
  return request<BS.TableResponseData>({
    url: `/casia/resources/gjb/findPage`,
    method: 'post',
    params: {
      pageSize: params.pageSize,
      pageNum: params.current,
    },
    data: params
  })
}

// 新增模型
export function addMilstdApi(params: FormData) {
  return request<BS.ViewResponseData>({
    headers: {
      "Content-Type": "multipart/form-data"
    },
    url: `/casia/resources/gjb/save`,
    method: 'post',
    data: params
  })
}
